#if !defined(AFX_GSTATIC_H__5201C9D9_7129_4F73_8801_2630725EDD4C__INCLUDED_)
#define AFX_GSTATIC_H__5201C9D9_7129_4F73_8801_2630725EDD4C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GStatic.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CGStatic window

class CGStatic : public CStatic
{
// Construction
public:
	CGStatic();

// Attributes
public:
	void drawTransparent(BOOL bRefresh = FALSE);
	void drawTransparent(CDC *pDC,BOOL bRefresh = FALSE);
	void SetBkColor(COLORREF bkColor,BOOL bRefresh = FALSE);
	void SetBkBMP(CBitmap *bkBMP,BOOL bRefresh  = FALSE );
	void SetTextColor(COLORREF textColor);
	void SetTextColor(COLORREF *textColor);
	void SetBorder(BOOL bHasBoder = TRUE,COLORREF BoderColor = 0,BOOL bRefresh  = FALSE);
	void SetBorder(BOOL bHasBoder = TRUE,COLORREF *BoderColor = 0,BOOL bRefresh  = FALSE);
	void Redraw(BOOL bRedraw);
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CGStatic();

	// Generated message map functions
protected:
	//{{AFX_MSG(CGStatic)
	afx_msg void OnNcPaint();
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	void InitDataBase();
	
private:
	void SetBk(CDC *pDC);
	CBitmap m_bkBMP;
	CBrush m_brush;
	BOOL m_bHasBorder;
	COLORREF m_borderColor;
	COLORREF m_textColor;
	COLORREF *m_pBorderColor;
	COLORREF *m_pTextColor;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GSTATIC_H__5201C9D9_7129_4F73_8801_2630725EDD4C__INCLUDED_)
